import { IWsState } from './state'

export const mutations = {
  GET_WSDATA: (state: IWsState, wsData: any) => {
    state.wsData = wsData
  },
  SET_ISHIDDNE: (state: IWsState, isHiddenViewPort: boolean) => {
    state.isHiddenViewPort = isHiddenViewPort
  },
  SET_ISDESTORY: (state: IWsState, destroyTime: any) => {
    state.destroyTime = destroyTime
  }
}
